package org.artifact.core.plugin.thread;

import lombok.Data;

@Data
public class ThreadPoolConfig {
    /**
     * 线程池名称
     */
    private String name;
    /**
     * 线程数
     */
    private int count = 1;
    /**
     * 类型
     * Single = newSingleThreadExecutor
     * Fixed = newFixedThreadPool
     * Cached = newCachedThreadPool
     * Scheduled = newScheduledThreadPool
     */
    private String type;
    /**
     * 停止超时时间
     */
    private int shutdownTimeOut = 180000;
}
